package com.zhouyu;

import com.zhouyu.service.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		OrderService orderService = (OrderService) applicationContext.getBean("orderService");
		orderService.one();
	}
}







